import router from './router';
import { Message } from 'ant-design-vue';
// 路由守卫
router.beforeEach((to, from, next) => {
  const token = '123'; // 用户信息
  if (!token) {
    Message('登录过期，请重新登录！');
    next({ path: '/login' });
  } else {
    next();
  }
});
